package com.dys.pojo;

import java.io.Serializable;
import java.util.List;

/**
 * @className: com.dys.pojo.UserInfo
 * @description: com.dys.pojo
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/11/04 21:55
 */
public class UserInfo implements Serializable {
    private Integer id;
    private String name;
    private String address;
    private String gender;

    private List<String> favorites;

    public UserInfo() {
    }

    public UserInfo(String username, String address, String gender, List<String> favorites) {
        this.name = username;
        this.address = address;
        this.gender = gender;
        this.favorites = favorites;
    }

    public UserInfo(String username, String address, String gender) {
        this.name = username;
        this.address = address;
        this.gender = gender;
    }

    public UserInfo(Integer id, String username, String address, String gender) {
        this.id = id;
        this.name = username;
        this.address = address;
        this.gender = gender;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public List<String> getFavorites() {
        return favorites;
    }

    public void setFavorites(List<String> favorites) {
        this.favorites = favorites;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", gender='" + gender + '\'' +
                ", favorites=" + favorites +
                '}';
    }
}
